﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="FoodDirectionEdit.aspx.cs" Inherits="StoragePeriod.Web.FoodTesting.FoodDirectionEdit" %>
<%@ Register src="/UserControls/FCKEditor/FCKContent.ascx" tagname="FCKContent" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>检测说明</title>
    <link href="/Styles/MainStyle.css" rel="stylesheet" type="text/css" />
    <link href="/Scripts/artDialog/skins/default.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <style type="text/css">
        .TitleTabs{ width:100%; height:25px; border-bottom:1px solid #3bb9f3; margin:0px auto; padding-top:10px;}
        .TitleTabs li{float:left; width:100px; height:25px; line-height:25px; margin-left:10px;}
        .TitleTabs li a{ display:block; width:100px; height:24px; line-height:24px; border:1px solid #3bb9f3; border-bottom:0px; text-align:center; background-color:#b9eefe; color:#000; font-weight:600;}
        .TitleTabs .TabsOver{border-bottom:1px solid #fff; background-color:#fff; color:#f90;}

        .FoodDirectionMain{min-width:850px; min-height:500px;}
    </style>

    <script type="text/javascript">
        //VC检测说明
        function ShowFoodDirection() {
            var FoodID = '<%=Request.QueryString["FoodID"].ToString()%>';
            var RawTypeID = '<%=Request.QueryString["RawTypeID"]==null?"1":Request.QueryString["RawTypeID"].ToString()%>'
            window.location.href = '/FoodTesting/FoodDirectionEdit.aspx?FoodID=' + FoodID + '&RawTypeID=' + RawTypeID + '&ShowType=Edit&Rid=' + Math.random();
        }

        function OpenIframe(FoodID,RawTypeID) {
            window.location.href = 'FoodDirectionEdit.aspx?FoodID=' + FoodID + '&RawTypeID=' + RawTypeID + "&ShowType=Show&rid=" + Math.random();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        
        <div class="TitleTabs" style="min-width:500px;">
            <ul>
                <li><a class="<%=Request.QueryString["RawTypeID"]==null||(Request.QueryString["RawTypeID"]!=null&&Request.QueryString["RawTypeID"].ToString()=="1")?"TabsOver":""%>" href="javascript:OpenIframe('<%=Request.QueryString["FoodID"].ToString()%>',1);">蔬菜</a></li>
                <li><a class="<%=(Request.QueryString["RawTypeID"]!=null&&Request.QueryString["RawTypeID"].ToString()=="2")?"TabsOver":""%>" href="javascript:OpenIframe('<%=Request.QueryString["FoodID"].ToString()%>',2);">肉制品</a></li>
                <li><a class="<%=(Request.QueryString["RawTypeID"]!=null&&Request.QueryString["RawTypeID"].ToString()=="6")?"TabsOver":""%>" href="javascript:OpenIframe('<%=Request.QueryString["FoodID"].ToString()%>',6);">水产</a></li>
                <li><a class="<%=(Request.QueryString["RawTypeID"]!=null&&Request.QueryString["RawTypeID"].ToString()=="7")?"TabsOver":""%>" href="javascript:OpenIframe('<%=Request.QueryString["FoodID"].ToString()%>',7);">水果</a></li>
            </ul>
        </div>
        <asp:Panel ID="Pan_Show" runat="server">
            <div>
                <asp:Label ID="lab_Contents" runat="server"></asp:Label>
            </div>
            <div class="aui_buttons">
                <input type="button" value="编辑" class="aui_state_highlight" onclick="ShowFoodDirection()" />
            </div>
        </asp:Panel>
        <asp:Panel ID="Pan_Edit" runat="server">
            <div class="FoodDirectionMain">
                <uc1:FCKContent ID="FCK_Content" runat="server"  Width="100%" Height="500px;"/>
            </div>
            <div class="aui_buttons">
                <asp:Button Text="提交" runat="server" CssClass="aui_state_highlight" ID="btPost" OnClick="btPost_Click" />
            </div>
        </asp:Panel>
    </form>
</body>
</html>
